import lejos.nxt.Button;
import lejos.nxt.SensorConstants;
import lejos.nxt.SensorPort;


public class TeachingTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		SensorPort.S1.setTypeAndMode(SensorPort.SP_ANA, SensorConstants.MODE_RAW);
		while(Button.ESCAPE.isUp()) {
			System.out.println(SensorPort.S1.readRawValue());
		}
	}

}
